package MemberSalaryManagement;

public class PartTimeEmployee extends Member implements Staff{
    private double salary;

    public PartTimeEmployee()
    {
        this.salary = Math.random()*(3000 - 1000);
    }

    public double getSalary()
    {
        return salary;
    }

    public double getNetIncome()
    {
        double netIncome = getSalary() - getMonthlyFee();
        if(netIncome<0)
        {
            System.out.println("加油干吧！");
        }
        else
        {
            System.out.println("净收入：" + netIncome + "元");
        }
        return netIncome;
    }


}
